Component({
    /**
     * 组件的属性列表
     */
    properties: {
        name:{
            type:String,
            value:'订单tab'
        },
        paramAtoB:String,
        gitem:Object
    },
  
    /**
     * 组件的初始数据
     */
    data: {
  
    },
  
    /**
     * 组件的方法列表
     */
    methods: {
        gtogo: function (e) {
            console.log(this.properties.gitem);
            var { skipurl, Is, isskip } = this.properties.gitem;
            if (isskip === 1) {
                wx.navigateTo({
                    url: skipurl
                });
            } else {
                var newArr = skipurl.split('/');
                var url = "../" + newArr[1] + "/" + newArr[2];
                if (Is) {
                    wx.switchTab({
                        url: url
                    });
                } else {
                    wx.navigateTo({
                        url: url
                    });
                }
            }

        }
    }
  })
  